package ooday03;

public class Teacher extends Person {
    double salary;
    Teacher(String name ,int age ,String address, double salary){
        super(name, age, address);
        this.salary = salary;
    }
    void eat(){
        System.out.println("老师"+name+"拿着工资"+salary+"元，在开心的吃饭");
    }
    void sleep(){
        System.out.println("老师"+name+"每天都回"+address+"睡觉");
    }
    void teach(){
        System.out.println(name+"在教课");
    }
}
